var a = getApp();

Page({
    data: {
        mhei: a.globalData.sheight,
        statusBarHeight: a.globalData.height + "px",
        navigationBarHeight: a.globalData.height + 44 + "px"
    },
    onLoad: function(a) {
        console.log(this.data.mhei);
    },
    goMiniProgram: function(a) {
        console.log(a);
        var t = a.currentTarget.dataset.appid;
        wx.navigateToMiniProgram({
            appId: t,
            success: function(a) {
                console.log(a);
            }
        });
    },
    onShareAppMessage: function(a) {
        return "button" === a.from && console.log(a.target), {
            title: "周公解梦,十二生肖,星座运势,星座配对",
            path: "/pages/index/index",
            success: function(a) {},
            fail: function(a) {}
        };
    },
    onShareTimeline:function(){
        return "button" === a.from && console.log(a.target), {
            title: "周公解梦,十二生肖,星座运势,星座配对",
            path: "/pages/index/index",
            success: function(a) {},
            fail: function(a) {}
        };
    }
});